<!DOCTYPE html>
<html lang="en">
    <head>
        
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css">
    <title>表单元素</title>
    </head>
    <body>
        <div id="top"></div>
    <form action="#" method="post">  
    <table cellspacing="0" cellpadding="10px" align="center">  

    <caption><h3>用户注册</h3></caption>
    <tr>
        
        <td>
            <fieldset>&nbsp;&nbsp;&nbsp;&nbsp;用户名<input type="text" class="name" name="username" /><br>&nbsp;&nbsp;&nbsp&nbsp密&nbsp;&nbsp;&nbsp;码<input type="text" class="name" name="username" /><br>密码确认<input type="text" class="name" name="username" />
                <legend>身份验证-必填信息</legend>
            </fieldset>
        </td>

   
    </tr>
    <tr>
        
        <td>
            <fieldset>所在城市<select name="address">
                <option value="beijing">北京</option>
                <option value="shanghai">上海</option>
                <option value="shenzhen">深圳</option>
            </select>
            <br>工作单位<input type="text" class="name" name="username" /><br>家庭住址<input type="text" class="name" name="username" />
                <legend>身份信息-选填信息</legend>
            </fieldset>
        </td>

   
    </tr>
    <tr>
        
        <td>
            <fieldset>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;性别<select name="address">
                <option value="beijing">男</option>
                <option value="shanghai">女</option>

            </select><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;爱好<input type="radio" name="gender" />音乐<input type="radio" name="gender" />体育<input type="radio" name="gender" />计算机<br>喜欢的公司<input type="radio" name="gender" />百度<input type="radio" name="gender" />微软中国<input type="radio" name="gender" />谷歌中国<br>
            个人简介<input type="text" class="name" name="username" />

                <legend>其他个人信息</legend>
            </fieldset>
            <input type="button" value="提交你的资料" disabled /><input type="button" value="重新填写资料" disabled /><br><button disabled>无效按钮</button>
        </td>

   
    </tr>
    </table>
    </form> 
        <button id="back-to-top">回到顶部</button>
        <script src="script.js"></script>
    </body>